<!doctype html>


<html>
<head>
  <link rel="shortcut icon" href="static/images/favicon.ico" type="image/x-icon">
  <title>field_test.js (Closure Library API Documentation - JavaScript)</title>
  <link rel="stylesheet" href="static/css/base.css">
  <link rel="stylesheet" href="static/css/doc.css">
  <link rel="stylesheet" href="static/css/sidetree.css">
  <link rel="stylesheet" href="static/css/prettify.css">

  <script>
     var _staticFilePath = "static/";
     var _typeTreeName = "goog";
     var _fileTreeName = "Source";
  </script>

  <script src="static/js/doc.js">
  </script>


  <meta charset="utf8">
</head>

<body onload="grokdoc.onLoad();">

<div id="header">
  <div class="g-section g-tpl-50-50 g-split">
    <div class="g-unit g-first">
      <a id="logo" href="index.html">Closure Library API Documentation</a>
    </div>

    <div class="g-unit">
      <div class="g-c">
        <strong>Go to class or file:</strong>
        <input type="text" id="ac">
      </div>
    </div>
  </div>
</div>





<div class="colmask rightmenu">
<div class="colleft">
    <div class="col1">
      <!-- Column 1 start -->

<div id="title">
       <span class="fn">field_test.js</span>
</div>

<div class="g-section g-tpl-75-25">
  <div class="g-unit g-first" id="description">
    Shared tests for goog.editor.Field and ContentEditableField.
 Since ContentEditableField switches many of the internal code paths in Field
 (such as via usesIframe()) it's important to re-run a lot of the same tests.
  </div>
  

        <div class="g-unit" id="useful-links">
          <div class="title">Useful links</div>
          <ol>
            <li><a href="closure_goog_editor_field_test.js.source.html"><span class='source-code-link'>Source Code</span></a></li>
            <li><a href="http://code.google.com/p/closure-library/source/browse/closure/goog/editor/field_test.js">Git</a></li>
          </ol>
        </div>
</div>

<h2 class="g-first">File Location</h2>
  <div class="g-section g-tpl-20-80">
    <div class="g-unit g-first">
      <div class="g-c-cell code-label">editor/field_test.js</div>
    </div>
  </div>
<hr/>


  <h2>Classes</h2>
 <div class="fn-constructor">
        <a href="class_TestPlugin.html">
          TestPlugin</a><br/>
        <div class="class-details">Dummy plugin for test usage.</div>
 </div>
      
<br/>

  <div class="legend">
        <span class="key publickey"></span><span>Public</span>
        <span class="key protectedkey"></span><span>Protected</span>
        <span class="key privatekey"></span><span>Private</span>
  </div>









<div class="section">
  <table class="horiz-rule">


  </table>
</div>




  <h2>Global Functions</h2>





<div class="section">
  <table class="horiz-rule">


     <tr class="even entry public">
       <td class="access"></td>






  <td>
    <a name="doTestPlaceCursorAtEnd"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace"></span><span class="entryName">doTestPlaceCursorAtEnd<span class="args">(<span class="arg">The</span>,&nbsp;<span class="arg">opt_html</span>,&nbsp;<span class="arg">opt_parentId</span>,&nbsp;<span class="arg">opt_offset</span>)</span>
        </span>
      </div>


     <div class="entryOverview">
       Helper to test that the cursor is placed at the beginning of the editable
field's contents.
     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">The</span>
        : <div class="fullType"><span>?</span></div>
        <div class="entryOverview">offset to expect for the end position.</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">opt_html</span>
        : <div class="fullType">(<span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span><span>&nbsp;|&nbsp;</span><span class="type">undefined</span>)</div>
        <div class="entryOverview">Html to replace the test file default field contents with.</div>
     </td>
   </tr>
     
   <tr class="even">
     <td>
        <span class="entryName">opt_parentId</span>
        : <div class="fullType">(<span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span><span>&nbsp;|&nbsp;</span><span class="type">undefined</span>)</div>
        <div class="entryOverview">Id of the parent of the node where the cursor is expected to be placed. If omitted, will expect cursor to be placed in the first child of the field element (or, if the field has no content, in the field element itself).</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">opt_offset</span>
        : 
        <div class="entryOverview"><span class='nodesc'>No description.</span></div>
     </td>
   </tr>
  </table>
      </div>
   
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="closure_goog_editor_field_test.js.source.html#line1083">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry public">
       <td class="access"></td>






  <td>
    <a name="doTestPlaceCursorAtStart"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace"></span><span class="entryName">doTestPlaceCursorAtStart<span class="args">(<span class="arg">opt_html</span>,&nbsp;<span class="arg">opt_parentId</span>)</span>
        </span>
      </div>


     <div class="entryOverview">
       Helper to test that the cursor is placed at the beginning of the editable
field's contents.
     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">opt_html</span>
        : <div class="fullType">(<span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span><span>&nbsp;|&nbsp;</span><span class="type">undefined</span>)</div>
        <div class="entryOverview">Html to replace the test file default field contents with.</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">opt_parentId</span>
        : <div class="fullType">(<span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span><span>&nbsp;|&nbsp;</span><span class="type">undefined</span>)</div>
        <div class="entryOverview">Id of the parent of the node where the cursor is expected to be placed. If omitted, will expect cursor to be placed in the first child of the field element (or, if the field has no content, in the field element itself).</div>
     </td>
   </tr>
  </table>
      </div>
   
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="closure_goog_editor_field_test.js.source.html#line970">code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry public">
       <td class="access"></td>






  <td>
    <a name="getBrowserEvent"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace"></span><span class="entryName">getBrowserEvent<span class="args">()</span>
        </span>
        &#8658; <div class="fullType">(<span class="type"><a href="class_goog_events_Event.html">goog.events.Event</a></span><span>&nbsp;|&nbsp;</span><span class="type">null</span>)</div>
      </div>


     <div class="entryOverview">
       <span class='nodesc'>No description.</span>
     </div>


    <! -- Method details -->
    <div class="entryDetails">

   
      <div class="detailsSection">
        <b>Returns:</b>&nbsp;<div class="fullType">(<span class="type"><a href="class_goog_events_Event.html">goog.events.Event</a></span><span>&nbsp;|&nbsp;</span><span class="type">null</span>)</div>&nbsp;
            Returns an event for a keyboard shortcut for the letter 'a'
      </div>
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="closure_goog_editor_field_test.js.source.html#line213">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry public">
       <td class="access"></td>






  <td>
    <a name="testClearDelayedChange"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace"></span><span class="entryName">testClearDelayedChange<span class="args">()</span>
        </span>
      </div>


     <div class="entryOverview">
       <span class='nodesc'>No description.</span>
     </div>

   
  </td>


  <td class="view-code">
     <a href="closure_goog_editor_field_test.js.source.html#line1152">code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry public">
       <td class="access"></td>






  <td>
    <a name="testDispatchDelayedChange"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace"></span><span class="entryName">testDispatchDelayedChange<span class="args">()</span>
        </span>
      </div>


     <div class="entryOverview">
       <span class='nodesc'>No description.</span>
     </div>

   
  </td>


  <td class="view-code">
     <a href="closure_goog_editor_field_test.js.source.html#line1199">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry public">
       <td class="access"></td>






  <td>
    <a name="testDisposed_PluginAutoDispose"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace"></span><span class="entryName">testDisposed_PluginAutoDispose<span class="args">()</span>
        </span>
      </div>


     <div class="entryOverview">
       Tests that plugins get auto disposed by default when the field is disposed.
Tests that plugins with setAutoDispose(false) do not get disposed when the
field is disposed.
     </div>

   
  </td>


  <td class="view-code">
     <a href="closure_goog_editor_field_test.js.source.html#line189">code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry public">
       <td class="access"></td>






  <td>
    <a name="testGetEditableDomHelper"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace"></span><span class="entryName">testGetEditableDomHelper<span class="args">()</span>
        </span>
      </div>


     <div class="entryOverview">
       <span class='nodesc'>No description.</span>
     </div>

   
  </td>


  <td class="view-code">
     <a href="closure_goog_editor_field_test.js.source.html#line894">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry public">
       <td class="access"></td>






  <td>
    <a name="testGetPluginByClassId"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace"></span><span class="entryName">testGetPluginByClassId<span class="args">()</span>
        </span>
      </div>


     <div class="entryOverview">
       Tests that registered plugins can be fetched by their id.
     </div>

   
  </td>


  <td class="view-code">
     <a href="closure_goog_editor_field_test.js.source.html#line170">code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry public">
       <td class="access"></td>






  <td>
    <a name="testHandleChange"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace"></span><span class="entryName">testHandleChange<span class="args">()</span>
        </span>
      </div>


     <div class="entryOverview">
       <span class='nodesc'>No description.</span>
     </div>

   
  </td>


  <td class="view-code">
     <a href="closure_goog_editor_field_test.js.source.html#line1187">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry public">
       <td class="access"></td>






  <td>
    <a name="testHandleCutAndPasteEvents"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace"></span><span class="entryName">testHandleCutAndPasteEvents<span class="args">()</span>
        </span>
      </div>


     <div class="entryOverview">
       Tests to make sure the cut and paste events are not dispatched immediately.
     </div>

   
  </td>


  <td class="view-code">
     <a href="closure_goog_editor_field_test.js.source.html#line363">code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry public">
       <td class="access"></td>






  <td>
    <a name="testHandleWindowLevelMouseUp"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace"></span><span class="entryName">testHandleWindowLevelMouseUp<span class="args">()</span>
        </span>
      </div>


     <div class="entryOverview">
       <span class='nodesc'>No description.</span>
     </div>

   
  </td>


  <td class="view-code">
     <a href="closure_goog_editor_field_test.js.source.html#line1209">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry public">
       <td class="access"></td>






  <td>
    <a name="testHandledKeyEvent"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace"></span><span class="entryName">testHandledKeyEvent<span class="args">()</span>
        </span>
      </div>


     <div class="entryOverview">
       If one plugin handles a key event, the rest of the plugins do not get their
key handlers invoked.
     </div>

   
  </td>


  <td class="view-code">
     <a href="closure_goog_editor_field_test.js.source.html#line322">code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry public">
       <td class="access"></td>






  <td>
    <a name="testHandledSelectionChange"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace"></span><span class="entryName">testHandledSelectionChange<span class="args">()</span>
        </span>
      </div>


     <div class="entryOverview">
       Tests that if a plugin handles selectionChange that it gets called and
no further plugins can handle the selectionChange.
     </div>

   
  </td>


  <td class="view-code">
     <a href="closure_goog_editor_field_test.js.source.html#line722">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry public">
       <td class="access"></td>






  <td>
    <a name="testKeyHandlingAlt"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace"></span><span class="entryName">testKeyHandlingAlt<span class="args">()</span>
        </span>
      </div>


     <div class="entryOverview">
       Make sure that handleKeyboardShortcut is not called if alt is pressed.
     </div>

   
  </td>


  <td class="view-code">
     <a href="closure_goog_editor_field_test.js.source.html#line514">code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry public">
       <td class="access"></td>






  <td>
    <a name="testKeyboardShortcutCalled"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace"></span><span class="entryName">testKeyboardShortcutCalled<span class="args">()</span>
        </span>
      </div>


     <div class="entryOverview">
       Make sure that handleKeyboardShortcut is called if other key handlers
return false.
     </div>

   
  </td>


  <td class="view-code">
     <a href="closure_goog_editor_field_test.js.source.html#line449">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry public">
       <td class="access"></td>






  <td>
    <a name="testKeyboardShortcutNotCalled"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace"></span><span class="entryName">testKeyboardShortcutNotCalled<span class="args">()</span>
        </span>
      </div>


     <div class="entryOverview">
       Make sure that handleKeyboardShortcut is not called if other key handlers
return true.
     </div>

   
  </td>


  <td class="view-code">
     <a href="closure_goog_editor_field_test.js.source.html#line482">code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry public">
       <td class="access"></td>






  <td>
    <a name="testMakeUneditableDisablesPlugins"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace"></span><span class="entryName">testMakeUneditableDisablesPlugins<span class="args">()</span>
        </span>
      </div>


     <div class="entryOverview">
       Tests that plugins are disabled when the field is made uneditable.
     </div>

   
  </td>


  <td class="view-code">
     <a href="closure_goog_editor_field_test.js.source.html#line226">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry public">
       <td class="access"></td>






  <td>
    <a name="testNoHandleWindowLevelMouseUp"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace"></span><span class="entryName">testNoHandleWindowLevelMouseUp<span class="args">()</span>
        </span>
      </div>


     <div class="entryOverview">
       <span class='nodesc'>No description.</span>
     </div>

   
  </td>


  <td class="view-code">
     <a href="closure_goog_editor_field_test.js.source.html#line1233">code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry public">
       <td class="access"></td>






  <td>
    <a name="testNotHandledKeyEvent"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace"></span><span class="entryName">testNotHandledKeyEvent<span class="args">()</span>
        </span>
      </div>


     <div class="entryOverview">
       If the first plugin does not handle the key event, the next plugin gets
a chance to handle it.
     </div>

   
  </td>


  <td class="view-code">
     <a href="closure_goog_editor_field_test.js.source.html#line401">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry public">
       <td class="access"></td>






  <td>
    <a name="testNotHandledSelectionChange"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace"></span><span class="entryName">testNotHandledSelectionChange<span class="args">()</span>
        </span>
      </div>


     <div class="entryOverview">
       Tests that if the first plugin does not handle selectionChange that
the next plugin gets a chance to handle it.
     </div>

   
  </td>


  <td class="view-code">
     <a href="closure_goog_editor_field_test.js.source.html#line754">code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry public">
       <td class="access"></td>






  <td>
    <a name="testNotSupportedExecCommand"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace"></span><span class="entryName">testNotSupportedExecCommand<span class="args">()</span>
        </span>
      </div>


     <div class="entryOverview">
       Test that if the first plugin does not support execCommand, the other
plugins get a chance to handle the execCommand.
     </div>

   
  </td>


  <td class="view-code">
     <a href="closure_goog_editor_field_test.js.source.html#line619">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry public">
       <td class="access"></td>






  <td>
    <a name="testNotSupportedQueryCommand"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace"></span><span class="entryName">testNotSupportedQueryCommand<span class="args">()</span>
        </span>
      </div>


     <div class="entryOverview">
       Tests that if the first plugin does not support a command that its
queryCommandValue do not get called and the next plugin can handle the
queryCommandValue.
     </div>

   
  </td>


  <td class="view-code">
     <a href="closure_goog_editor_field_test.js.source.html#line688">code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry public">
       <td class="access"></td>






  <td>
    <a name="testPlaceCursorAtEnd"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace"></span><span class="entryName">testPlaceCursorAtEnd<span class="args">()</span>
        </span>
      </div>


     <div class="entryOverview">
       <span class='nodesc'>No description.</span>
     </div>

   
  </td>


  <td class="view-code">
     <a href="closure_goog_editor_field_test.js.source.html#line1133">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry public">
       <td class="access"></td>






  <td>
    <a name="testPlaceCursorAtEndEmptyField"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace"></span><span class="entryName">testPlaceCursorAtEndEmptyField<span class="args">()</span>
        </span>
      </div>


     <div class="entryOverview">
       <span class='nodesc'>No description.</span>
     </div>

   
  </td>


  <td class="view-code">
     <a href="closure_goog_editor_field_test.js.source.html#line1138">code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry public">
       <td class="access"></td>






  <td>
    <a name="testPlaceCursorAtEndNonImportantTextNode"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace"></span><span class="entryName">testPlaceCursorAtEndNonImportantTextNode<span class="args">()</span>
        </span>
      </div>


     <div class="entryOverview">
       <span class='nodesc'>No description.</span>
     </div>

   
  </td>


  <td class="view-code">
     <a href="closure_goog_editor_field_test.js.source.html#line1143">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry public">
       <td class="access"></td>






  <td>
    <a name="testPlaceCursorAtStart"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace"></span><span class="entryName">testPlaceCursorAtStart<span class="args">()</span>
        </span>
      </div>


     <div class="entryOverview">
       <span class='nodesc'>No description.</span>
     </div>

   
  </td>


  <td class="view-code">
     <a href="closure_goog_editor_field_test.js.source.html#line1056">code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry public">
       <td class="access"></td>






  <td>
    <a name="testPlaceCursorAtStartEmptyField"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace"></span><span class="entryName">testPlaceCursorAtStartEmptyField<span class="args">()</span>
        </span>
      </div>


     <div class="entryOverview">
       <span class='nodesc'>No description.</span>
     </div>

   
  </td>


  <td class="view-code">
     <a href="closure_goog_editor_field_test.js.source.html#line1061">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry public">
       <td class="access"></td>






  <td>
    <a name="testPlaceCursorAtStartNonImportantTextNode"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace"></span><span class="entryName">testPlaceCursorAtStartNonImportantTextNode<span class="args">()</span>
        </span>
      </div>


     <div class="entryOverview">
       <span class='nodesc'>No description.</span>
     </div>

   
  </td>


  <td class="view-code">
     <a href="closure_goog_editor_field_test.js.source.html#line1066">code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry public">
       <td class="access"></td>






  <td>
    <a name="testPluginExecCommand"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace"></span><span class="entryName">testPluginExecCommand<span class="args">()</span>
        </span>
      </div>


     <div class="entryOverview">
       Test that if a plugin has an execCommand function, it gets called
but only for supported commands.
     </div>

   
  </td>


  <td class="view-code">
     <a href="closure_goog_editor_field_test.js.source.html#line547">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry public">
       <td class="access"></td>






  <td>
    <a name="testPluginKeyDown"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace"></span><span class="entryName">testPluginKeyDown<span class="args">()</span>
        </span>
      </div>


     <div class="entryOverview">
       Test that if a plugin registers keydown, it gets called.
     </div>

   
  </td>


  <td class="view-code">
     <a href="closure_goog_editor_field_test.js.source.html#line275">code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry public">
       <td class="access"></td>






  <td>
    <a name="testPluginKeyPress"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace"></span><span class="entryName">testPluginKeyPress<span class="args">()</span>
        </span>
      </div>


     <div class="entryOverview">
       Test that if a plugin registers keypress, it gets called.
     </div>

   
  </td>


  <td class="view-code">
     <a href="closure_goog_editor_field_test.js.source.html#line298">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry public">
       <td class="access"></td>






  <td>
    <a name="testPluginKeyUp"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace"></span><span class="entryName">testPluginKeyUp<span class="args">()</span>
        </span>
      </div>


     <div class="entryOverview">
       Test that if a plugin registers keyup, it gets called.
     </div>

   
  </td>


  <td class="view-code">
     <a href="closure_goog_editor_field_test.js.source.html#line252">code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry public">
       <td class="access"></td>






  <td>
    <a name="testQueryCommandValue"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace"></span><span class="entryName">testQueryCommandValue<span class="args">()</span>
        </span>
      </div>


     <div class="entryOverview">
       <span class='nodesc'>No description.</span>
     </div>

   
  </td>


  <td class="view-code">
     <a href="closure_goog_editor_field_test.js.source.html#line908">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry public">
       <td class="access"></td>






  <td>
    <a name="testRegisterPlugin"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace"></span><span class="entryName">testRegisterPlugin<span class="args">()</span>
        </span>
      </div>


     <div class="entryOverview">
       Tests that calling registerPlugin will add the plugin to the
plugin map.
     </div>

   
  </td>


  <td class="view-code">
     <a href="closure_goog_editor_field_test.js.source.html#line99">code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry public">
       <td class="access"></td>






  <td>
    <a name="testRestoreSavedRange"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace"></span><span class="entryName">testRestoreSavedRange<span class="args">()</span>
        </span>
      </div>


     <div class="entryOverview">
       Verify that restoreSavedRange() restores the range and sets the focus.
     </div>

   
  </td>


  <td class="view-code">
     <a href="closure_goog_editor_field_test.js.source.html#line1020">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry public">
       <td class="access"></td>






  <td>
    <a name="testSelectionChange"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace"></span><span class="entryName">testSelectionChange<span class="args">()</span>
        </span>
      </div>


     <div class="entryOverview">
       <span class='nodesc'>No description.</span>
     </div>

   
  </td>


  <td class="view-code">
     <a href="closure_goog_editor_field_test.js.source.html#line785">code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry public">
       <td class="access"></td>






  <td>
    <a name="testSelectionChangeBeforeUneditable"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace"></span><span class="entryName">testSelectionChangeBeforeUneditable<span class="args">()</span>
        </span>
      </div>


     <div class="entryOverview">
       <span class='nodesc'>No description.</span>
     </div>

   
  </td>


  <td class="view-code">
     <a href="closure_goog_editor_field_test.js.source.html#line871">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry public">
       <td class="access"></td>






  <td>
    <a name="testSelectionChangeOnMouseUp"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace"></span><span class="entryName">testSelectionChangeOnMouseUp<span class="args">()</span>
        </span>
      </div>


     <div class="entryOverview">
       <span class='nodesc'>No description.</span>
     </div>

   
  </td>


  <td class="view-code">
     <a href="closure_goog_editor_field_test.js.source.html#line813">code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry public">
       <td class="access"></td>






  <td>
    <a name="testSetHtml"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace"></span><span class="entryName">testSetHtml<span class="args">()</span>
        </span>
      </div>


     <div class="entryOverview">
       <span class='nodesc'>No description.</span>
     </div>

   
  </td>


  <td class="view-code">
     <a href="closure_goog_editor_field_test.js.source.html#line926">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry public">
       <td class="access"></td>






  <td>
    <a name="testSupportedExecCommand"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace"></span><span class="entryName">testSupportedExecCommand<span class="args">()</span>
        </span>
      </div>


     <div class="entryOverview">
       Test that if one plugin supports execCommand, no other plugins
get a chance to handle the execComand.
     </div>

   
  </td>


  <td class="view-code">
     <a href="closure_goog_editor_field_test.js.source.html#line585">code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry public">
       <td class="access"></td>






  <td>
    <a name="testSupportedQueryCommand"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace"></span><span class="entryName">testSupportedQueryCommand<span class="args">()</span>
        </span>
      </div>


     <div class="entryOverview">
       Tests that if a plugin supports a command that its queryCommandValue
gets called and no further plugins can handle the queryCommandValue.
     </div>

   
  </td>


  <td class="view-code">
     <a href="closure_goog_editor_field_test.js.source.html#line654">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry public">
       <td class="access"></td>






  <td>
    <a name="testUnregisterPlugin"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace"></span><span class="entryName">testUnregisterPlugin<span class="args">()</span>
        </span>
      </div>


     <div class="entryOverview">
       Tests that calling unregisterPlugin will remove the plugin from
the map.
     </div>

   
  </td>


  <td class="view-code">
     <a href="closure_goog_editor_field_test.js.source.html#line153">code &raquo;</a>
  </td>
     </tr>


  </table>
</div>






      <!-- Column 1 end -->
    </div>

        <div class="col2">
          <!-- Column 2 start -->
          <div class="col2-c">
            <h2 id="ref-head">Directory editor</h2>
            <div id="localView"></div>
          </div>

          <div class="col2-c">
            <h2 id="ref-head">File Reference</h2>
            <div id="sideFileIndex" rootPath="" current="editor/field_test.js"></div>
          </div>
          <!-- Column 2 end -->
        </div>
</div>
</div>

</body>
</html>
